//
//  CameraManager.m
//  gdemm
//
//  Created by 乔明超 on 16/3/30.
//  Copyright © 2016年 Goldencis. All rights reserved.
//

#import "CameraManager.h"
@interface CameraManager()
@property (nonatomic,assign) BOOL mDisable;
@end
@implementation CameraManager

static CameraManager *_mInstance;


- (instancetype)init
{
    self = [super init];
    if (self) {
        _mDisable = NO;
    }
    return self;
}

+ (instancetype)getInstance{
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        _mInstance = [[self alloc]init];
    });
    return _mInstance;
    
}

#pragma mark 实现PolicyHandler协议的方法
- (NSString *)supportPolicy{

    return FORBID_CAMERA;
}

- (BOOL)startPolicyWithPolicyType:(NSString *)policyType policyContent:(NSString *)policyContent{

    _mDisable = YES;
    return YES;
    
}
- (BOOL)stopPolicyWithPolicyType:(NSString *)policyType{
    
    
    return YES;
}





@end
